package cn.shujuhai.common.config;

//@Component
public class SaTokenFirewallConfig {

    //@PostConstruct
    public void initFirewallStrategy() {
        // 设置非法路径处理逻辑
/*        SaFirewallStrategy.instance.requestPathInvalidHandle = (requestPath, extArg1, extArg2) -> {
//            try {
//                HttpServletResponse response = (HttpServletResponse) extArg2;
//                response.setStatus(400);
//                response.setContentType("text/plain;charset=UTF-8");
//                response.getWriter().print("非法请求！");
//            } catch (Exception e) {
//                e.printStackTrace();
//            }
            throw new UnknownPathException("非法请求！");
        };*/
    }
}

